<?php
 $sql = new db();
 $req = 'SELECT * FROM entrepot';
 $sql->query($req);
 if ($sql->num_rows() > 0)
 {
   $data = array();
   while ($tmp = $sql->fetch_array())
    $data[] = $tmp;
 }
?>